#ifndef TESTRGB_QT_H
#define TESTRGB_QT_H

#include <QWidget>
#include <thread>

namespace Ui {
class TestRGB_QT;
}

class TestRGB_QT : public QWidget
{
    Q_OBJECT

public:
    explicit TestRGB_QT(QWidget *parent = 0);
    void Main();
    void timerEvent(QTimerEvent* ev) override;
    void resizeEvent(QResizeEvent *event)override;

    ~TestRGB_QT();
signals:
    void ViewS();
public slots:
    void View();
    void Open1();
    void Open2();
    void Open(int i);

private:
    Ui::TestRGB_QT *ui;
    bool is_exit_ = false;
    std::thread th_;
};

#endif // TESTRGB_QT_H
